package org.carabiner.example;

import java.awt.Dimension;

import junit.framework.TestCase;

import org.carabiner.harness.HarnessFactory;

public class TestShapeView extends TestCase
{
  private ShapeView view;

  protected void setUp() throws Exception
  {
    view = new ShapeView();
    super.setUp();
  }

  protected void tearDown() throws Exception
  {
    view = null;
    super.tearDown();
  }
  
  public void testModelCreate()
  {
    assertNotNull(view.getShapeModel());
  }
  
  public void testPreferredSize()
  {
    assertEquals(new Dimension(700, 500), view.getPreferredSize());
  }
  
  public static void main(String[] args) throws Exception
  {
    TestShapeView test = new TestShapeView();
    test.setUp();
    HarnessFactory.showHarness(test.view);
  }

}
